var router = require('koa-router')();
var models = require('./../../models');


router.use('/project/:id', function* (next) {
    var prj = yield models.Project.findById(parseInt(this.params.id));
    this.state.project = prj;
    yield next;
});



module.exports = router.routes();